<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/8/17
 * Time: 9:29
 */

namespace app\common\model\mall;

use app\common\model\TimeModel;

class Coupon extends TimeModel
{

    //优惠券所属商家
    public function store()
    {
        return $this->belongsTo('app\common\model\mall\Store','store_id','id')->field('id,name');
    }
}